class MwProfile < ActiveRecord::Base
  # attr_accessible :title, :body
  attr_accessible :mail, :address, :phone

  def mail=(mail)
    if(mail.length>100)
      return nil
    end
    write_attribute(:mail,mail)
  end
  def address=(address)
    if(address.length>255)
      return nil
    end
    write_attribute(:address, address)
  end
  def phone=(phone)
    if(phone.length>14)
      return nil
    end
    write_attribute(:phone, phone)
  end
end
